projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded0831
)
mpc83xx: Fix the bug of 266MHz data rate DDR
author
Dave Liu
<
[email protected]
>
Thu, 10 Jan 2008 15:09:33 +0000
(23:09 +0800)
committer
Kim Phillips
<
[email protected]
>
Fri, 11 Jan 2008 03:24:11 +0000
(21:24 -0600)
The DDR doesn't work on the 266MHz data rate,
the patch fix the bug.
Signed-off-by: Dave Liu <
[email protected]
>
Signed-off-by: Kim Phillips <
[email protected]
>
cpu/mpc83xx/spd_sdram.c
patch
|
blob
|
history
diff --git
a/cpu/mpc83xx/spd_sdram.c
b/cpu/mpc83xx/spd_sdram.c
index 29dd47078ec2a62563d4e6436429ff60927a29d9..0acca4771783dc30f6a0953968732828f4523915 100644
(file)
--- a/
cpu/mpc83xx/spd_sdram.c
+++ b/
cpu/mpc83xx/spd_sdram.c
@@
-574,9
+574,9
@@
long int spd_sdram()
*/
cpo = 0;
if (spd.mem_type == SPD_MEMTYPE_DDR2) {
- if (effective_data_rate == 266
|| effective_data_rate == 333
) {
- cpo = 0x
7; /* READ_LAT + 5/4
*/
- } else if (effective_data_rate == 400) {
+ if (effective_data_rate == 266) {
+ cpo = 0x
4; /* READ_LAT + 1/2
*/
+ } else if (effective_data_rate ==
333 || effective_data_rate ==
400) {
cpo = 0x7; /* READ_LAT + 5/4 */
} else {
/* Automatic calibration */